package com.aliyun.messagemgt.common.annotation;



import com.aliyun.messagemgt.common.base.NullResouce;
import com.aliyun.messagemgt.common.enums.OperateTypeEnum;
import com.aliyun.messagemgt.common.enums.ResourceTypeEnum;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * Created with IDEA
 *
 * @author:zhangxingxing 0027012120
 * @date:2019/3/15
 * @time:19:49
 */
@Retention(RetentionPolicy.RUNTIME)
public @interface OperateLogAnnotation {
    /**
     * 操作资源类型
     *
     * @return
     */
    ResourceTypeEnum resouceType();

    /**
     * 操作类型
     *
     * @return
     */
    OperateTypeEnum operateType();

    /**
     * 资源类
     *
     * @return
     */
    Class resouceClass() default NullResouce.class;

    /**
     * 资源的ID
     *
     * @return
     */
    String resouceIdField() default "";

}
